/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atm.controller;

import javax.faces.context.FacesContext;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author cj
 */
public class AbstractBean {

    public AbstractBean() {
    }

    protected String getAuthenticatedCardNumber() {
        HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
        return request.getUserPrincipal().getName();
    }

}
